﻿using WinForm.Common;
using WinForm.Modules;

namespace WinForm
{
    /// <summary>
    /// 负责：
    /// 系统功能模块的初始化
    /// 菜单按钮的功能的初始化
    /// 菜单的初始化
    /// </summary>
    class Init
    {
   
        /// <summary>
        /// 功能模块初始化
        /// 添加任何模块按照下面步骤走：
        /// 在FunctionModuleRegister方法中添加
        /// 1、注册添加控件
        /// 2、添加菜单，并为菜单设置图片
        /// 四、
        /// </summary>
        public static void FunctionModuleRegister()
        {
            FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupAbout"), ResourcesHelper.GetString("ModuleAbout"), "", null, typeof(About));
            //FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupArrange"), ResourcesHelper.GetString("ModuleArrangeFileGroup"), "把编排文件按照市进行分组", "GroupFile", typeof(ArrangeFileGroup));
            //FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupArrange"), ResourcesHelper.GetString("ModuleCheckFileRenameAndGroup"), "座次表文件命名并分组", "GroupFile", typeof(CheckFileRenameAndGroup));
            //FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupArrange"), ResourcesHelper.GetString("ModulePDF"), "PDF操作", "PDF", typeof(PDF));
            FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupContacts"), ResourcesHelper.GetString("ModuleContacts"), "", "Contacts", typeof(CityContacts));
            FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupContacts"), ResourcesHelper.GetString("ModuleContactsOfUniversities"), "", "ContactsOfUniversities", typeof(UniversityContacts));
            FunctionModules.Instance.Add(ResourcesHelper.GetString("GroupBasic"), ResourcesHelper.GetString("ModuleCitysManagement"), "", "Citys", typeof(Citys));
            

        }
    }
}
